package tgc.edu.demo.jkxt.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import tgc.edu.demo.jkxt.custom.BaseRepository;
import tgc.edu.demo.jkxt.entity.Question;
import tgc.edu.demo.jkxt.entity.TiKu;

@Repository
public interface TiKuRepository extends BaseRepository<TiKu, Integer> {

	@Query(value = "SELECT question_id FROM ti_ku_question WHERE ti_ku_id =?",nativeQuery = true)
	List<Integer> findTiMuByTikuId(Integer tikuId);

}
